﻿<%@ Page Language="C#" MasterPageFile="~/Shared/Shared.master" AutoEventWireup="true"
    CodeFile="index.aspx.cs" Inherits="ltMan_index_tabStrip" %>

<%@ Register Src="~/Shared/UserControl/SiteHeader.ascx" TagName="SiteHeader" TagPrefix="telerikEx" %>
<asp:Content ID="C1" ContentPlaceHolderID="head" runat="Server">
    <style>
        #ctl00_ctl00_CPH1_RadMultiPage1Panel {
            height: 100%;
        }
        .rtsIn .rtsTxt {
            color: #649AB4;
            font-weight: bold;
        }
    </style>
</asp:Content>
<asp:Content ID="C2" ContentPlaceHolderID="CPH1" runat="Server">
    <asp:ScriptManagerProxy runat="server">
        <Scripts>
            <asp:ScriptReference Path="~/Shared/js/radTreeWithTabStrip.js" />
        </Scripts>
    </asp:ScriptManagerProxy>
    <script>
        if (top.location != self.location) top.location = self.location;
        var treeWithTab;
        function closeAllClick(s, e) {
            var v = e.get_item().get_value();
            if (v == 1)
                treeWithTab.deleteAllTab();
            else
                treeWithTab.refreshActive();
        }
        Sys.Application.add_load(function () {
            treeWithTab = new radTreeWithTabStrip('<%=RadTreeViewMenu.ClientID %>', '<%= RadTabStrip1.ClientID %>', '<%= RadMultiPage1.ClientID %>', '<%=Master.FindControl("MasterRALP1").ClientID %>');
            $('.split-bar').removeClass('rspResizeBar');
        });
    </script>
    <telerik:RadAjaxManagerProxy runat="server" ID="proxy1">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadTreeViewMenu">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />
                    <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadTabStrip1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />
                    <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
    <telerik:RadContextMenu ID="TabMenu" runat="server" EnableRoundedCorners="true"
        EnableShadows="true" OnClientItemClicked="closeAllClick">
        <Targets>
            <telerik:ContextMenuControlTarget ControlID="RadTabStrip1" />
        </Targets>
        <Items>
            <telerik:RadMenuItem ImageUrl="~/shared/img/icons/gif_for_ie6/arrow_refresh.gif" Text="刷新当前" Value="0" />
            <telerik:RadMenuItem ImageUrl="~/shared/img/icons/delete_tab.gif" Text="关闭所有" Value="1" />
        </Items>
    </telerik:RadContextMenu>
    <telerik:RadSplitter ID="RadSplitterTop" runat="server" Width="100%" Height="100%"
        Orientation="Horizontal">
        <telerik:RadPane ID="RadPaneTop" runat="server" Height="48" Scrolling="None">
            <telerikEx:SiteHeader ID="SiteHeader1" runat="server" />
        </telerik:RadPane>
        <%--<telerik:RadSplitBar ID="RadSplitBarUp" runat="server" EnableResize="false" CollapseMode="Forward" />--%>
        <telerik:RadPane ID="RadPaneDown" runat="server" Scrolling="None">
            <telerik:RadSplitter ID="RadSplitterContent" runat="server">
                <telerik:RadPane ID="RadPaneLeft" runat="server" MaxWidth="250" Width="150">
                    <telerik:RadTreeView ID="RadTreeViewMenu" ShowLineImages="false" runat="server">
                        <DataBindings>
                            <telerik:RadTreeNodeBinding ImageUrl="/shared/img/assert/menu-folder.jpg" Depth="0" />
                            <telerik:RadTreeNodeBinding ImageUrl="/shared/img/assert/menu-item.jpg" Depth="1" />
                        </DataBindings>
                    </telerik:RadTreeView>
                </telerik:RadPane>
                <telerik:RadSplitBar ID="RadSplitBarLeft" runat="server" CollapseMode="Forward" CssClass="split-bar" />
                <telerik:RadPane ID="RadPaneRight" runat="server" Scrolling="None">
                    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1"
                        SelectedIndex="0">
                        <Tabs>
                            <telerik:RadTab Text="首页" Selected="true" Value="index" />
                        </Tabs>
                    </telerik:RadTabStrip>
                    <telerik:RadMultiPage ID="RadMultiPage1" runat="server" Height="100%" SelectedIndex="0">
                        <telerik:RadPageView runat="server" ContentUrl="ContentIndex.aspx" Selected="true"
                            Height="100%" />
                    </telerik:RadMultiPage>
                </telerik:RadPane>
            </telerik:RadSplitter>
        </telerik:RadPane>
    </telerik:RadSplitter>
</asp:Content>